<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/



Route::get('/sysIntroduce', function () {
   return view('web.SysIntroduce');
});

Route::get('/proIntroduce', function () {
   return view('web.ProIntroduce');
});


Route::get('/connection', function () {
   return view('web.Connection');
});

Route::get('/register', function () {
   return view('web.Register');
});

Route::get('/register_one', function () {
   return view('web.Register_one');
});

Route::get('/login', function () {
   return view('web.Login');
});
Route::get('/useraccount',function(){
   return view('web.UserAccount');
});
Route::get('/Reg_result',function(){
   return view('web.result');
});
Route::get('/update',function(){
   return view('web.update');
});
Route::get('/bd_news/{time}',function(){
    return view('web.bd_news');
});
Route::group(['prefix' =>'/ajax', 'namespace'=>'AjaxRequest'], function(){
	   Route::POST('checkname','CheckNameController@store');
           Route::POST('checkpassw','CheckPassWController@store');
           Route::POST('submit','SubmitController@store');
	   Route::POST('submitInfo','SubmitInfoController@store');
           Route::POST('login','LoginController@store');
           Route::POST('info','InfoController@store');
           Route::POST('resetPW','ResetPassWController@store');
           Route::POST('update','UpdateController@store');
});
 Route::GET('/','DyNewsController@index');
 Route::get('/dynamicNews', function () {
   return view('web.DynamicNews');
});
 //Route::GET('Onlynews','OnlyNewsController@index');
 Route::GET('Onlynews/{id}','OnlyNewsController@show');

/*Route::resource('/sysIntroduce','SysIntroduceController');
Route::resource('/proIntroduce','ProIntroduceController');
Route::resource('/dynamicNews','DynamicNewsController,
Route::resource('/connection','ConnectionController');
Route::resource('/register','RegisterController');
Route::resource('/login','LoginController');*/




